<?php
session_start();

require_once($_SERVER['DOCUMENT_ROOT'].'/mpd/config/config.php');


$nip = $_SESSION['NIP'];

//baca tabel pekerjaan
$query=mysql_query("SELECT FILE,ID_PEKERJAAN,ID_JENIS,NAMA_PEKERJAAN,DUE_PEKERJAAN
					FROM pekerjaan where NIP =".$nip);  

	while($row = mysql_fetch_array($query)){
		
		$temp = array(

			'id_pekerjaan'    => $row['ID_PEKERJAAN'],
			'jenis_pekerjaan' => $row['ID_JENIS'],
			'pekerjaan'       => $row['NAMA_PEKERJAAN'],
			'duedate'         => $row['DUE_PEKERJAAN'],
			'file'	   		  => $row['FILE']
			
		);
		}
?>